<template>
	<view>
		<!-- 头像 -->
		<view class="text-area">
			<view class="box">
				<view class="tx_Position">
					<uni-file-picker limit="1" :del-icon="false" disable-preview :imageStyles="imageStyles"
						file-mediatype="image">
						<uni-icons color="#ffffff" type="contact" size="75"></uni-icons>
					</uni-file-picker>
				</view>
				<view class="userAttribute">
					<text style="position: relative;bottom: 5px;">张三</text>
					<text>维修师傅</text>
				</view>
			</view>
		</view>

		<!-- list列表 -->
		<view>
			<uni-list>
				<view>
					<uni-list-item :show-extra-icon="true" :extra-icon="extraIcon1" title="电子工作证" link
						to="pages/message/message" @click="onClick($event,1)" />
				</view>
				<view>
					<uni-list-item :show-extra-icon="true" :extra-icon="extraIcon" title="设置" link
						:to="`./dzgongzuozheng`" @click="onClick($event,1)" />
				</view>
			</uni-list>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				imageValue: [], //图片的值
				//图片样式
				imageStyles: {
					width: 60,
					height: 60,
					border: {
						color: "#ffffff",
						radius: '50%'
					}
				},
				extraIcon: {
					color: '#007AFF',
					size: '20',
					type: 'gear-filled'
				},
				extraIcon1: {
					color: '#007AFF',
					size: '20',
					type: 'person-filled'
				}
			}
		},
		onLoad() {

		},
		methods: {
			onClick(e) {
				// console.log('执行click事件', e.data)
				// uni.showToast({
				// 	title: '点击反馈'
				// });
				uni.navigateTo({
					url:'../Dzwork/Dzwork'
				})
			},
		}
	}
</script>

<style>
	.text-area {
		background-color: #007AFF;
		height: 80px;
	}

	.box {
		display: flex; //弹性盒子
		flex-direction: row; //默认从左侧开始布局
		justify-content: flex-start; //左对其
	}

	.tx_Position {
		margin-left: 20px; //外边距里左边20px
	}

	.userAttribute {
		display: flex; //弹性盒子
		flex-direction: column; //主轴垂直方向，起点在上边沿；
		font-size: 10px; //字体大小
		color: #ffffff;
		margin-left: 5px;
		margin-top: 20px;
		align-items: center; //align-items属性定义在交叉轴上的对齐方式  居中center
	}
</style>
